home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
tex
/
sstrim11.zip
/
SSTRIM.DOC
< prev
Wrap
Text File
|
1994-04-05
|
3KB
|
60 lines
SSTRIM Version 1.1 Copyright (c) Stanley Schweitzer, 1994
SSTRIM removes trailing spaces from each line in a text file.
There are three ways SSTRIM may be used.
1. Input and output files may be specified on the command line:
SSTRIM InFile OutFile
2. SSTRIM may be used as a filter:
SSTRIM <InFile >OutFile
Each of the above commands reads InFile, and either replaces an
existing OutFile, or creates a new OutFile. InFile is not changed.
3. SSTRIM may be used to trim a file in place:
SSTRIM File
For the above command, the trimmed version of File is written
over the original File. No additional disk space is used.
If /? is anywhere on the command line, or no files are specified, a
help message is displayed.
__________________________________________________________________________
Definitions and Limits
A line is a sequence of characters ending in a carriage return
(ascii 13), a control-z (ascii 26), or the end of the file.
Files may be any size up to 4 Gigabytes. There is no limit on the
length of the lines in a file, or the number of spaces in each line.
__________________________________________________________________________
Notes
Files may be specified by any combination of redirection or appearing on
the command line. These four commands are equivalent:
SSTRIM InFile OutFile
SSTRIM InFile >OutFile
SSTRIM <InFile OutFile
SSTRIM <InFile >OutFile
If no output file is specified, the action taken depends on how
the input file is specified:
SSTRIM <File trimmed File is sent to standard output
SSTRIM File File is replaced by trimmed File
File may be a device. For example:
SSTRIM File prn trimmed File is sent to the printer
Warning: Do not redirect output to con if a file is specified on the
command line. Since DOS strips the redirection before SSTRIM sees it,
the result will be the same as if there were no redirection to con.
SSTRIM File >con File is replaced
Instead, use either of these commands:
SSTRIM File con trimmed File is sent to the screen
SSTRIM <File [>con] trimmed File is sent to the screen
__________________________________________________________________________
SSTRIM is freeware and freely distributable.
Stanley Schweitzer
stans@princeton.edu